import { service as request, BasePath } from '../request'

const moduleName = '/trafficlightsConfig'

/** 交通灯上线 */
export const trafficLightOnline = (id) => request({
  url: `${BasePath + moduleName}/online`,
  method: 'get',
  params: { id }
})

/** 交通灯下线 */
export const trafficLightOffline = (id) => request({
  url: `${BasePath + moduleName}/offline`,
  method: 'get',
  params: { id }
})
